
<html>
<head>
<meta charset="utf-8"/>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Document</title>
</head>
<body>
<div class="header">
      鲲鹏使能套件BoostKit验收报告
    </div>
<div class="content">
<div class="title">
        配置信息
      </div>
<div class="info">
<div class="left">
<div class="left-content">
</div>
</div>
<div class="right">
<div class="text">已使能解决方案</div>
<div class="num">1</div>
</div>
</div>
<div class="table">
<div class="title">验收详细结果</div>
<table>
<tr>
<th>序号</th>
<th>解决方案</th>
<th>特性</th>
<th>是否必选</th>
<th>分析结果</th>
</tr>
</table>
</div>
</div>
</body>
<script>    



    // 配置信息
    var leftContentEle = document.getElementsByClassName('left-content')[0];
    infoList.forEach(item => {
      let singleEle = document.createElement('div');
      singleEle.setAttribute('class', 'single');
      let labelEle = document.createElement('div');
      labelEle.setAttribute('class', 'label');
      labelEle.innerText = item.label;
      let valueEle = document.createElement('div');
      valueEle.setAttribute('class', 'value');
      valueEle.innerText = item.value;

      singleEle.appendChild(labelEle);
      singleEle.appendChild(valueEle);
      leftContentEle.appendChild(singleEle);
    })


    // 已使能特性
    var numEle = document.getElementsByClassName('num')[0];
    numEle.innerText = num;


    // 验收详细结果
    var tableEle = document.getElementsByTagName('table')[0];
    tableList.forEach(list => {
      let trEle = document.createElement('tr');
      list.forEach(item => {
        let tdEle = document.createElement('td');
        tdEle.innerText = item;
        trEle.appendChild(tdEle);
      })
      tableEle.appendChild(trEle);
    })


  </script>
<style>
    body {
      background-color: #222020;
      color: #fff;
      padding: 8px 16px;
      margin: 0;
      font-size: 14px;
    }
    .header {
      font-size: 18px;
      width: 100%;
      line-height: 50px;
      border-bottom: 1px solid rgb(110, 110, 110);
    }
    .info {
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
    }
    .left {
      width: 60%;
    }
    .title {
      font-size: 16px;
      margin: 20px 0 10px 0;
    }
    .single {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      margin: 8px 0;
    }
    .label {
      color: rgb(195, 206, 216);
      width: 30%;
    }
    .right {
      width: 40%;
      text-align: center;
    }
    .text {
      font-size: 20px;
      color: rgb(195, 206, 216);
    }
    .num {
      font-size: 50px;
    }
    table {
      border: 1px solid rgb(110, 110, 110);
      width: 100%
    }
    th{
      font-size: 14px; 
      padding: 5px 15px;
      color: rgb(222, 227, 231);
      background-color: #555353;
    }
    td {
      padding: 2px 5px;
      border-top: 1px solid rgb(110, 110, 110);
      border-right: 1px solid rgb(110, 110, 110);
      text-align: center;
    }
    td:last-child {
      border-right: none

    }
  </style>
</html>
